Class sjl.PredEqual
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sjl.PredEqual

java.lang.Object
   |
   +----sjl.PredEqual

public class PredEqual
extends Object
implements Predicate2
PredEqual is a predicate object designed for comparing object using the equals() method. The default implementation compares if the objects are in fact references to the same object, but all the wrapper classes redefines equals().

Copyright © 1996 Finn Bock


Constructor Index

 o PredEqual()

Method Index

 o compare(Object, Object)
Compare the two object using the equals() method.

Constructors

 o PredEqual
  public PredEqual()

Methods

 o compare
  public boolean compare(Object o1,
                         Object o2)
Compare the two object using the equals() method.
Returns:
The value of equals() is returned.

All Packages  Class Hierarchy  This Package  Previous  Next  Index